package main

import (
	"log"
	"server_cluster/chat/chat_config"
	"server_cluster/chat/sharemem"
)

func main() {
	chat_config.InitConfig()
	shmid := sharemem.Get_myshm(&(sharemem.Myshm))
	if shmid <= 0 {
		log.Fatal("get myshm fail.")
		return
	}
	var myshm = sharemem.Myshm
	if myshm.Status == 1 {
		myshm.Status = 2
		log.Println("stop command ok.")
	} else {
		log.Println("game server is not running.failed Status = ", myshm.Status)
	}
}
